package java3_2;

/**
 *4：求1-1000之间的数的和
 */
public class homework4 {
    public static void main(String[] args) {
        int i = 1;
        int add =0;
        while (i<=1000){
             i++;
             add= add +i;
        }
        System.out.println(add+1);
    }
}
